#include <iostream>
#include "Interface.h"


int main()
{
    // 把对象销毁就会退出界面
    Interface *f = new Interface;
    f->drawBox(50, 10);

    f->drawText(22, 1, "欢迎来到魔塔世界");
    f->drawText(11, 3, "🤖 账号：");
    f->drawText(11, 5, "🔑 密码：");

    f->drawText(11, 7, "🌏 登录");
    f->drawText(34, 7, "⛓️‍💥 退出");

    std::string account = f->GetInput(20, 3);
    std::string passwd = f->GetInput(20, 5);

    delete f;
    std::cout << account << std::endl;
    std::cout << passwd << std::endl;

    // while(1)
    return 0;
}